package com.wu.store.service;


import com.wu.store.entity.Cart;
import com.wu.store.entity.Goods;
import com.wu.store.entity.GoodsParams;
import com.wu.store.entity.GoodsWithImgList;

import java.util.List;

public interface GoodsService {
	List<Goods> getList(GoodsParams goodsParams);

	Goods getGoodsInfo(Long id, Cart cart) throws Exception;

	boolean isNameValid(Goods goods) throws Exception;

	void save(GoodsWithImgList goods) throws Exception;

	boolean delete(Long id) throws Exception;

	List<Goods> getHotList();
}
